package com.qqt.csr.order.service.statemachine.action;

import com.qqt.csr.order.enums.WorkOrderEventEnum;
import com.qqt.csr.order.enums.WorkOrderStatusEnum;
import com.qqt.csr.order.service.statemachine.context.WorkOrderContext;
import com.qqt.csr.order.service.statemachine.rule.IEventMatcher;

public interface IActionPreProcessor extends IEventMatcher {

    /**
     * 执行工单事务之前，进行提取的操作
     *
     * @param from
     * @param to
     * @param event
     * @param context
     */
    void preProcess(WorkOrderStatusEnum from, WorkOrderStatusEnum to, WorkOrderEventEnum event, WorkOrderContext context);
}
